#ifndef __COMMON_MSG__
#define __COMMON_MSG__

#include "board_config.h"
#include "common_def.h"


#define COMMON_USER_MESSAGE_BASE               (0xF000)
#define COMMON_USER_MESSAGE_END                (COMMON_USER_MESSAGE_BASE + 0x100)

typedef enum
{
	COMMON_USER_MSG_START = COMMON_USER_MESSAGE_BASE,
	/* Add user msg id*/
	COMMON_USER_MSG_1S_POLLING,

	COMMMON_USER_MSG_MAX,
}eComUserMsgId;

typedef enum
{
	COMMON_MSG_TYPE_USER 	= 0,
	COMMON_MSG_TYPE_BUTTON,
	COMMON_MSG_TYPE_SYSTEM,
	COMMON_MSG_TYPE_MAX,
}ComMsgType_e;

bool common_user_msg_init(void);

void common_message_cancel(ComMsgType_e type, MessageId id);

void common_message_send(ComMsgType_e type, MessageId id, void *message, uint32 delay);

#endif  /*__COMMON_MSG__*/
